package com.jy.adscm.serviceProvider.service;

import com.jy.adscm.dealer.bean.Dealer;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.security.utils.Token;
import com.jy.adscm.serviceProvider.bean.JyService;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-01-24
 */
public interface JyServiceService extends IService<JyService> {

    boolean insertJyService(JyService jyService, Token token) throws AdscmSystemException;

    boolean deleteJyService(Integer id, Token token)throws AdscmSystemException;

    Boolean updateJyService(JyService jyService, Token token)throws AdscmSystemException;

    List<JyService> selectAll( Token token)throws AdscmSystemException;

    List<Dealer> queryLastServiceDept(String serviceType, Token token);
}
